package com.jjr.action;

import javax.servlet.http.HttpSession;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.hf.listener.MySessionContext;
import com.jjr.bean.JsonResult;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;


abstract public class BaseAction extends ActionSupport{
	
	public String openId;
	public JsonResult result;
	
	
	abstract public  String execute();
	
	public BaseAction() {
		try {
			   freemarker.log.Logger
			     .selectLoggerLibrary(freemarker.log.Logger.LIBRARY_NONE);
			  } catch (ClassNotFoundException e) {
			   e.printStackTrace();
			  }
		this.result = new JsonResult();
			  
			  
	}

	public JsonResult getResult() {
		return result;
	}

	public void setResult(JsonResult result) {
		this.result = result;
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	
	


	
	

	




	
}
